package com.jse.oo.design.pattern.behavioral.observer.publish;

/**
 * 参考：
 * http://blog.csdn.net/poechant/article/details/7292664
 * 
 * @author Administrator
 *
 */
public class PublishSubscribleTest {
	public static void main(String[] args) {
		InputLoop il = InputLoop.create();
		il.subscribe(Echo.create());
		il.subscribe(Quit.create());
		il.subscribe(Response.create("foo", "bar"));
		il.subscribe(Response.create("1+1", "2"));
		il.loop();
	}
}
